home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / MacTCP Library 1.1 / Library / HighLevel ƒ / Headers ƒ / HighLevelTCP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-04  |  869 b   |  38 lines  |  [TEXT/SPM ]

  1. /*
  2.  
  3.     HighLevelTCP.h
  4.  
  5.     high-level TCP I/O functions.
  6.  
  7.     11/28/95 mc - Created.
  8.     12/04/95 dn - Modified for inclusion in Apprentice 4.
  9. */
  10.  
  11. #pragma once
  12.  
  13. #ifndef __HL_TCP_H
  14. #define __HL_TCP_H
  15.  
  16. #include <MyTCPIncludes.h>
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. OSErr tcpCreate(StreamPtr *stream,ProcPtr tcpNotifyProc,Ptr buffer, long bufsize);
  23. OSErr tcpConnect(StreamPtr stream,ip_addr host,short port,short timeout);
  24. OSErr tcpSend(StreamPtr stream,Ptr data,unsigned short len,Boolean push,Boolean urgent);
  25. OSErr tcpRead(StreamPtr stream,Ptr data,unsigned short *len);
  26. OSErr tcpNoCopyRcv(StreamPtr stream,TCPiopb *tcp,short rdsLen,rdsEntry *rds);
  27. OSErr tcpReturnBuffers(StreamPtr stream,rdsEntry *rds);
  28.  
  29. OSErr tcpRelease(StreamPtr stream, Ptr *buffer, long *bufsize);
  30. OSErr tcpAbort(StreamPtr stream);
  31. OSErr tcpClose(StreamPtr stream);
  32.  
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36.  
  37. #endif
  38.